﻿<%@ Page Language="C#" AutoEventWireup="true" CodeFile="ShopSaleDetail_List.aspx.cs"
    Inherits="Shop_ShopSaleDetail_List" %>

<%@ Register Assembly="Infragistics2.WebUI.Misc.v7.1, Version=7.1.20071.40, Culture=neutral, PublicKeyToken=7dd5c3163f2cd0cb"
    Namespace="Infragistics.WebUI.Misc" TagPrefix="igmisc" %>
<%@ Register Assembly="Infragistics2.WebUI.WebDataInput.v7.1, Version=7.1.20071.40, Culture=neutral, PublicKeyToken=7dd5c3163f2cd0cb"
    Namespace="Infragistics.WebUI.WebDataInput" TagPrefix="igtxt" %>
<%@ Register Assembly="Infragistics2.WebUI.WebDateChooser.v7.1, Version=7.1.20071.40, Culture=neutral, PublicKeyToken=7dd5c3163f2cd0cb"
    Namespace="Infragistics.WebUI.WebSchedule" TagPrefix="igsch" %>
<%@ Register Assembly="Shove.Web.UI.4 For.NET 2.0" Namespace="Shove.Web.UI" TagPrefix="ShoveWebUI" %>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head runat="server">
    <title>销售明细表</title>
    <link href="../Style/css.css" rel="stylesheet" type="text/css" />
    <link href="../Style/main.css" rel="stylesheet" type="text/css" />
</head>
<body>
    <center>
        <form id="form1" runat="server">
        <table border="1" cellpadding="0" cellspacing="1" style="vertical-align: middle;
            width: 98%;">
            <tr>
                <td>
                    <igmisc:WebPanel ID="WebPanel1" runat="server" BackColor="#DAE7F8" BorderColor="#106DB0"
                        BorderWidth="1px" StyleSetName="" Width="100%" Expanded="False">
                        <PanelStyle Height="40px">
                        </PanelStyle>
                        <Header TextAlignment="Center">
                            <ExpandedAppearance>
                                <Styles BackColor="#DAE7F8" Font-Bold="True" Height="26px">
                                </Styles>
                            </ExpandedAppearance>
                        </Header>
                        <Template>
                            <table style="text-align: center;">
                                <tr>
                                    <td>
                                        <asp:DropDownList ID="ddlType" runat="server" Width="114px" Height="16px">
                                            <asp:ListItem Value="GoodNo">产品编号</asp:ListItem>
                                            <asp:ListItem Value="GoodName">产品名称</asp:ListItem>
                                        </asp:DropDownList>
                                    </td>
                                    <td>
                                        <asp:TextBox ID="txtCondition" runat="server"></asp:TextBox>
                                    </td>
                                    <td style="width: 100px; height: 30px">
                                        <asp:Label ID="Label1" runat="server" Text="销售时间段："></asp:Label>
                                    </td>
                                    <td>
                                        <igsch:WebDateChooser ID="wdcStart" runat="server" NullDateLabel="" Width="162px">
                                        </igsch:WebDateChooser>
                                    </td>
                                    <td style="width: 200px; height: 30px">
                                        <igsch:WebDateChooser ID="wdcEnd" runat="server" NullDateLabel="" Width="162px">
                                        </igsch:WebDateChooser>
                                    </td>
                                    <td style="width: 100px; height: 30px">
                                        <asp:Button ID="btnSearch" runat="server" OnClick="btnSearch_Click" Text="搜索" Width="90px" />
                                        &nbsp;
                                    </td>
                                </tr>
                            </table>
                        </Template>
                    </igmisc:WebPanel>
                </td>
            </tr>
            <tr>
                <td align="center" colspan="3">
                    <asp:DataGrid ID="g" runat="server" BackColor="#6CA4E4" CellPadding="5" Width="100%"
                        CellSpacing="1" BorderWidth="0px" AllowSorting="True" DataKeyField="ShopID" AutoGenerateColumns="False"
                        AllowPaging="True" CssClass="gStyle" OnItemCreated="g_ItemCreated" ShowFooter="True"
                        OnItemDataBound="g_ItemDataBound">
                        <FooterStyle HorizontalAlign="Center" ForeColor="#330099" BackColor="#FFFFCC"></FooterStyle>
                        <SelectedItemStyle HorizontalAlign="Center" Font-Bold="True" ForeColor="White"></SelectedItemStyle>
                        <HeaderStyle HorizontalAlign="Center" ForeColor="Navy" VerticalAlign="Middle" CssClass="gHeader">
                        </HeaderStyle>
                        <ItemStyle CssClass="gItem" BackColor="White" />
                        <Columns>
                            <asp:BoundColumn DataField="ShopID" HeaderText="ShopID" Visible="False"></asp:BoundColumn>
                            <asp:BoundColumn DataField="ID" HeaderText="序号" ReadOnly="True"></asp:BoundColumn>
                            <asp:BoundColumn DataField="ShopName" HeaderText="店铺名称" Visible="false"></asp:BoundColumn>
                            <asp:BoundColumn DataField="ShopNo" HeaderText="店铺编号" Visible="false"></asp:BoundColumn>
                            <asp:BoundColumn DataField="GoodNo" HeaderText="产品编号"></asp:BoundColumn>
                            <asp:BoundColumn DataField="GoodName" HeaderText="产品名称"></asp:BoundColumn>
                            <asp:BoundColumn DataField="Price_Orig" HeaderText="原价(单价)" ReadOnly="True"></asp:BoundColumn>
                            <asp:BoundColumn DataField="Price_Vip" HeaderText="Vip价(单价)" ReadOnly="True"></asp:BoundColumn>
                            <asp:BoundColumn DataField="Price_Lastin" HeaderText="进货价(单价)" Visible="false">
                            </asp:BoundColumn>
                            <asp:BoundColumn DataField="Price_BV" HeaderText="PV值" ></asp:BoundColumn>
                            <asp:BoundColumn DataField="Amount" HeaderText="销售数量"  ItemStyle-Width="55px">
                            </asp:BoundColumn>
                            <asp:BoundColumn DataField="StockAmount" HeaderText="库存数量" ReadOnly="True" ItemStyle-Width="55px">
                            </asp:BoundColumn>
                            <asp:BoundColumn DataField="VipSum" HeaderText="Vip总价" ></asp:BoundColumn>
                            <asp:BoundColumn DataField="LastinSum" HeaderText="进货总价" Visible="false">
                            </asp:BoundColumn>
                            <asp:BoundColumn DataField="BVSum" HeaderText="PV总积分" ReadOnly="True"></asp:BoundColumn>                       
                            <asp:BoundColumn DataField="GoodID" HeaderText="商品ID" ReadOnly="True" Visible="False">
                            </asp:BoundColumn>
                            <asp:TemplateColumn HeaderText="操作">
                                <ItemTemplate>
                                    <asp:HyperLink ID="hlDetail" runat="server" Target="CustomerIframe">详细</asp:HyperLink>
                                </ItemTemplate>
                            </asp:TemplateColumn>
                        </Columns>
                        <PagerStyle Visible="False" HorizontalAlign="Center" ForeColor="#330099" BackColor="#FFFFCC">
                        </PagerStyle>
                    </asp:DataGrid>
                    <ShoveWebUI:ShoveGridPager ID="gPager" BorderWidth="0" CssClass="gStyle" BorderStyle="None"
                        runat="server" Width="100%" ShowSelectColumn="False" DataGrid="g" OnPageWillChange="gPager_PageWillChange"
                        OnSortBefore="gPager_SortBefore" AlternatingRowColor="White" HotColor="White"
                        GuiseColor="False" ClientNavigation="true" PageSize="10" />
                    <br>
                </td>
            </tr>
            <tr>
                <td style="height: 23px">
                    <asp:Button ID="btnExcel" runat="server" Text="导出Excel" Width="90px" OnClick="btnExcel_Click" />
                    &nbsp;
                    <asp:Button ID="btnReturn" runat="server" Text=" 返  回 " Width="90px" OnClick="btnReturn_Click" />
                </td>
            </tr>
        </table>
        <table border="0" cellpadding="0" cellspacing="0" style="vertical-align: middle;
            width: 99%;">
            <tr>
                <td>
                    <iframe id="CustomerIframe" name="CustomerIframe" onload="document.all['CustomerIframe'].style.height=CustomerIframe.document.body.scrollHeight;document.all['CustomerIframe'].style.width=CustomerIframe.document.body.scrollWidth;"
                        frameborder="0" scrolling="no" style="width: 100%;" height="100%"></iframe>
                </td>
            </tr>
        </table>
        <br />
        <br />
        </form>
    </center>
    <p>
        <input id="hShopID" type="hidden" runat="server" />
        <!-- 保存上个页面传下来的数据-->
        <input id="hDay" type="hidden" runat="server" />
        <input id="hPrice_Lastin" type="hidden" runat="server" /> <!-- 是否有权限查看进价字段与进价总额 -->
    </p>
</body>
</html>
